/**
 *@Time    : 2021/11/12 01:00
 *@Author  : Shuai Jhou
 *@File    : helper
 *@Software: GoLand
 */

package helper

import (
	"google.golang.org/grpc/credentials"
	"log"
)

func GetServerCreds() credentials.TransportCredentials {
	creds, err := credentials.NewServerTLSFromFile("../keys/server.crt", "../keys/server.key")
	if err != nil {
		log.Fatal(err)
	}
	return creds
}
